package com.software.practicecenter.repository;

import com.software.practicecenter.entity.SubPassage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author xiaoliao
 * @Date 2023/5/31 14:40
 */
@Transactional
public interface SubPassageRepository extends JpaRepository<SubPassage,String> {
    List<SubPassage> findByPassageId(String passageId);
    SubPassage findSubPassageById(String id);
    SubPassage findSubPassageByNo(String no);

}
